package com.example.lotterysystem.controller.param;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;

@Data
public class UserRegisterParam implements Serializable {
//   param后缀用接收参数,注册的时候,接受的参数有姓名,密码,电话,邮箱,身份,其中.密码是非必须填写的.其余是必须填写的.
    @NotBlank(message = "姓名不能为空")
    private String name;
    @NotBlank(message="邮箱不能为空")
    private String email;
    @NotBlank(message="电话不能为空")
    private String phoneNumber;
    private String password;
    @NotBlank(message = "身份信息不能为空")
    private String identity;
}
